<include file="Public:head" title="积分列表"/>
<link rel="stylesheet" href="__PUBLIC__/assets/css/jquery-ui-1.10.3.full.min.css" />
<script src="__PUBLIC__/assets/js/jquery-ui-1.10.3.full.min.js"></script>

<script type="text/javascript">
    $(function() {
        $("#keyword").autocomplete({
            source: getUrl('Box/userAuto'),
            minLength: 1,
            autoFocus: true,
            select: function(event, ui) {
                $("#keyword").val(ui.item.label);
                return false;
            }
        });
    })

</script>
<div class="main-container" id="main-container">
    <div class="main-container-inner">
        <include file="Public:left" />
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <ul class="breadcrumb">
                    <li><i class="icon-home home-icon"></i><a href="__APP__/{$Think.MODULE_NAME}">首页</a></li>
                    <li><a href="{:U('User/lists')}">用户管理</a></li>
                    <li class="active">用户积分</li>
                </ul>
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="row">
                            <div class="col-xs-12">
                                <div class="header smaller lighter blue">
                                    <div class="nav-search col-xs-10" id="nav-search">
                                        <form class="form-search" method="get">
                                            <div class="search_area">
                                                <select name="mtype" autocomplete="off">
                                                    <option value="0">请选择类型</option>
                                                    <foreach name="mtypes" item="row">
                                                            <option value="{$key}"<if condition="$key eq $mtype">selected</if>>
                                                            {$row}
                                                            </option>
                                                        </foreach>
                                                </select>
                                                 <select name="ptype" autocomplete="off">
                                                    <option value="0">积分或火币</option>
                                                    <option value="1" <if condition="$ptype eq 1">selected</if>>积分</option>
                                                 <option value="2" <if condition="$ptype eq 1">selected</if>>火币</option>
                                                </select>
                                                <input class="form-control search-query" type="text" name="points" id="points" autocomplete="off"  placeholder="请输入积分" value="{$Think.get.points}">
                                                <input class="form-control search-query" type="text" name="keyword" id="keyword" autocomplete="off"  placeholder="请输入用户名" value="{$Think.get.keyword}">
                                                <input type="hidden" name="p" value="1"/>
                                                <button class="btn btn-purple btn-sm" type="submit">搜 索 <i class="icon_search icon-on-right bigger-110"></i></button>
                                            </div>
                                        </form>
                                    </div>
                                    <div class='cl'></div>
                                </div>
                                <notempty name='lists'>
                                    <div class="table-responsive">
                                        <table id="sample-table-1" class="table table-striped table-bordered table-hover">
                                            <thead>
                                                <tr>
<!--                                                    <th class="center" width='45px'>
                                                        <label>
                                                            <input type="checkbox" class="ace"  autocomplete="off"/>
                                                            <span class="lbl"></span>
                                                        </label>
                                                    </th>-->
                                                    <th width='45px' class="center">序号</th>
                                                    <th class="center">序号</th>
                                                    <th>用户</th>
                                                    <th>余额</th>
<!--                                                        <th>用户状态</th>-->
                                                        <th>登录IP</th>
                                                     
                                                    <th>财务属性</th>
                                                    <th width="120px">积分</th>
                                                    <th>详细说明</th>
<!--                                                    <th>状态</th>-->
<!--                                                    <th>ip</th>-->
                                                 
                                                    <th width="150px">下单时间</th>
                                                    <th width="65px">操作</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                            <foreach name="lists" item="row">
                                                <tr>
<!--                                                    <td class="center">
                                                        <label><input type="checkbox" class="ace" name="ids" value="{$row.id}" autocomplete="off" /><span class="lbl"></span></label>
                                                    </td>-->
                                                    <td class="center">{$key+1|getPageKey}</td>
                                                        <td class="center">{$row.uid}</td>
                                                 
                                                    <td style="text-align: left">
                                                        <a href="{:U('User/detail',array('id'=>$row['uid']))}">{$row.username}</a>
                                                    </td>
                                                     <td class="center">{$row.huobi}</td>
<!--                                                               <td class="center">{$row.is_check|getUserCheck}</td>-->
                                                     <td>{$row.loginip}</td>
                                                    <td>{$row.fuhao|getRefundState}</td>
                                                    <td>{$row.money}</td>
                                                    <td>{$row|getPointsTitle}</td>
<!--                                                    <td>{$row.status|getPointsState=###}</td>-->
<!--                                                       <td>{$row.ip}</td>-->
                                                 
                                                    <td>{$row.addtime|date="Y-m-d H:i:s",###}</td>
                                                    <td class="action-buttons">
                                                        <a class="red" data-toggle="modal"  onclick="targetDelTable('{$row.id}')" data-rel="tooltip" data-original-title="删除"><i class="icon-trash bigger-130"></i></a>
                                                    </td>
                                                </tr>
                                            </foreach>
                                            </tbody>
                                        </table>

                                    </div>
                                    <div id="grid-pager" class="ui-state-default  ui-corner-bottom" dir="ltr">
                                        <table width='100%' data-table='points'  id='modal_del_table'>
                                            <tr>
                                                <td>
<!--                                                    <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
                                                        <a class="red" data-toggle="modal" onclick="targetDelTable(0)"  data-rel="tooltip" data-original-title="批量删除">
                                                            <i class="icon-trash bigger-130"></i>
                                                        </a>
                                                    </div>-->
                                                </td>
                                                <td class='td_pager'><div class='pager'>{$page}</div></td>
                                            </tr>
                                        </table>
                                    </div>
                                    <else/>
                                    <p class='noempty'>没有符合条件的记录</p>
                                </notempty>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <include file="Public:setting" />
    </div>
</div>
<include file="Public:del" />
<include file="Public:foot" />